Add logic for deciding best auth/crypt types