add index for cache