Serializing MeshWrapper to vastly speed up code.