Implement charmStoreGet and charmStorePut helper functions.