Description
FTPS performance could be better if we cache the SSLContext and SSLSocketFactory for each SslConfiguration. Current code creates SSLContext everytime a SSL connection has to be created, initializes the SSLContext using the TrustManagers and KeyManagers and then creates the SSLSocketFactory. Cache the SSLSocketFactory instead and reuse it when needed. For more information please see this thread on the developers' mailing list http://www.mail-archive.com/dev@mina.apache.org/msg13644.html.