Use indices instead of caching