MULE-7664 Allow size of internal buffer used for copy streams to be cust...

...omized
Use the new utility method added in #779