Update function name to prevent export and reverse logic in tls config