perf improvement by switching splines to PPTrajectories