How is the flow optimization function of the target flow switch implemented?