Minor optimization in NetDevices