Improved 'shortest' path performance.