Add smooth migration for session (de)serialization