Route serialization for storage