@Mavireck: That was kind of the idea behind the dump/restore API

(c.f.,
@sherman's original FR [and my ramblings ;p]).
At least as a backend for that kind of thing, possibly coupled with print_raw_data for more esoteric use-cases.
I vaguely recall seeing you use the dump/restore API before, so I'm curious as to what led you to stick to print_raw_data for this?
(That's a perfectly valid solution, mind you, just asking in case something can be done to make the dump/restore stuff more approachable/practical

).