Rewrite ssltest to be multithreaded