Compress data