Handle BAM files with very large headers.