add `config_set` API for caching config-like files