Optimize generation of extra-PATH