A funny thing about this offset is that it's not really needed. I think you can remove all uses of it in this function, and change
`size -= offset` to `size -= sizeof(scaling_bloom_header_t)`