Adds basic index caching.