Improve safe safety by using a temporary file instead of the user file.