Memoryless nodes: Generic management of nodemasks for various purposes