Use less memory by freeing buffered messages sooner.