Refactored main mode NONCE/KE payload processing