compress records serialized by protobufs