Added switch to only remeber sockets when using udp requests