Split out DHE CKE construction into a separate function