Wrapper that provides a common interface for data compression