reduce number of find_node_by_name calls