Reducing amount of node attribute lookups