Deep serialization