Added config option for saving replacements to cache dir