It is unfortunate that a find operation is required on every access to the contigs, filters, etc. Here we are being limited by the underlying htslib representation (which ideally should separate the header fields into categories up front).