What's about arrays where I store binary data without dumping directly an entity or the like? Meaning I still need to work with the array data to generate something useful out of it.

If I procedurally generate stuff, am I allowed to store a file format header in my code in order to generate a valid file together with my procedural data?