Compression/decompression framework