Stop local_file_for from modifying param in place