optimised indexer