* Make `HistoryState` similar to `MigrateState` * Review Changes * Also cache the transformation Co-authored-by: Andreas <andreas.everos@gmail.com> * Fix States Co-authored-by: Andreas <andreas.everos@gmail.com> (cherry picked from commit 5bd5b215430c6d19c1e4314bdaf4264eb43e9d29)