It should be possible to register a class that preprocesses the messages upon loading before they get cached.