SNI-based switch for TLS connections