Improved performance by reusing buffer and reducing amounts of buffer creation