Make _saved_exports_from_configs use only one db call