improve resolveNodeId perf