Replace grid pickling with a packed struct file format.