Performance loss when loading lists and exporting to Excel

After a previous fix for a memory leak, performance loss occurred when loading lists and exporting to Excel.