Reduce memory usage of indexer