Added preappend locking to avoid SslStrem/TcpClient instantiation and authentication costs. Pending review.