minimize amount of crm_attribute and crm_node calls