cache to index