I will have a look at it, sure.
I still feel you should just have a go of using protobuf for the Tera Arrays - write a protobuf message description for each one, generate the java classes for it using the protobuf compiler, and then just need to use those classes to generate the bytes to write...