You don't. Any real compression algorithm, including all the other standard ones, doesn't need such a thing.
Many compression formats support static dictionaries, and for a good reason. Short messages don't compress well. If you know a bunch of common data for a context, you can make the first several kilobytes compress a lot better.