[core] Refactor the API calls to use b64encode for configuration storage