Use faster method getting valeu based on path