Inmemory cache for index