Optimization work with sockets (forwarding)