Is it possible to reliable save a slightly changed prefab up to 100 times?

I am making a puzzle game and was wondering if I could use prefabs as an undo system. It would be the easiest but I am worried about performance. Thanks.

(Its turnbased)

Do it profile it, test it.
Only then you will know.

Saving something of 100 is nothing for CPU.