In such a case, it is better to not compress the data. The compressed result may be bigger because of the extra data, e.g. the dictionary. Usually, a compression is only interesting with uncompressed data (so compressing a JPG file is mostly a waste of time) and enough data to have repetitive patterns.