use less memory when running consolidate