@Override
        public Socket createLayeredSocket(Socket socket, String target, int port, HttpContext context) throws IOException {
            return null;
        }
This factory is used only when no ssl connections are required (no https endpoints).
Internally http client would create factory and spend time if no supplied.
client-v2/src/main/java/com/clickhouse/client/api/internal/HttpAPIClientHelper.java