Currently, the same file format is used for primary and non-primary historic archive files. This does not make much sense since the two types are used very differently.
For the primary archive:
Write operations should be fast since it is collecting data in real-time
Read operations should be fast since the most recent data is usually the most relevant
File size is not a concern since there is only 1 primary archive
For non-primary archives:
Write speed is not a concern since write operations are infrequent
Read operations should be fast because users may want to look for patterns over a long time range
File size is very important because there are many non-primary archives and they can quickly fill up a drive
Please consider optimizing each type of archive file for its use. This likely means having 2 different file formats, and it may mean retiring the current archive file format. When an archive shift occurs, the primary archive should be reprocessed into a non-primary archive. Just in case if anything goes wrong, an archive in the primary format would ideally be usable as a non-primary archive, but not necessarily the other way around.