Added performance improvement through file-overwriting avoidance