KV change in API and cache implementation