pb serialization for transformation and compensation
de-serialization of transformation from pb archive
reducing the size of PB archive by packing bool indices into bytes