Prepare to modify an element before storing it permanently