Use simpler and more efficient collection iterator for indexer functionality.