Add caching for index file