key value repository refine