key value storage api