Can we have this function set the config param too instead of requiring 2 statements, one to set the config value and then another to update the cached value?