Remove synchronized in FlowConextGenerator and optimize bytes-to-hex conversion