Small optimizatioon in network event handling