Compression of matching values