Initial attempt at speeding (de)serialization