Path Calculator optimization