FlowContext optimizations

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