add index on hash for KV