better memory usage under indexing