Heuristic and value are cached on the nodes, avoiding re-calculations