Pipeline concurrency and FunctionToOptimize structure