Switch around code so SSL contexts are built first