Wrap the config saving to minimize writes to disk