Parallelize building g for ForwardStepwise