Photoshop doesn’t save History States parametrically. That is to say each history state is saved in RAM (or cached if RAM gets flooded) as a fully layered composite file. Next time you’re working on a really big file and your machine is starting to bog down, remember that. Then go change your History States prefs to a nice low number, like 5.