Implement caching for the index page