indexer: Reduce number of rehashes

We know the size of the table in advance so take advantage of that.