Improved the running time of the index by 100x