Optimize the network's class