Optimized path name lookup