Make simulator also read datamats.
Datamats can save and restore better to hdf5
Spline_base memoizes again.