Speed up index generation