Removing superfluous global variable global_byte_buf in favor of a more straight forward function scoped variable.