Cache clones instead of creating new ones each time

Otherwise, undoing and redoing this action might cause future actions
to have invalid references.