Apply performance tweaks to the auto-config path search method.