XD-431 - Performance optimization to prevent calling resolvePayloadTransformerForMessage() on every message if there is no transformer