A small optimization in node computation