Prevent modifying arguments during upsert.