#129: Improved the performance of newMessageBuffer