simplify key store's API