cache index to speed up key_field lookups