Complexity removed from encrypt_application_request method by dividing it into smaller methods