https://issues.apache.org/jira/browse/AMQ-5308

Improve performance of the codec for large message processing.