; or (bb) would be removed in the reasonably foreseeable future, or would have been removed, but for the alien's failure or refusal to make all reasonable efforts to comply with the removal order, or to cooperate fully with the Secretary's efforts to establish the alien's identity and carry out the removal order, including making timely application in good faith for travel or other documents necessary to the alien's departure, or conspires or acts to prevent removal; (II) until the alien is removed, if the Secretary of Homeland Security certifies in writing— (aa) in consultation with the Secretary of Health and Human Services, that the alien has a highly contagious disease that poses a threat to public safety; (bb) after receipt of a written recommendation from the Secretary of State, that release of the alien is likely to have serious adverse foreign policy consequences for the United States; (cc) based on information available to the Secretary of Homeland Security (including classified, sensitive, or national security information, and without regard to the grounds upon which the alien was ordered removed), that there is reason to believe that the release of the alien would threaten the national security of the United States; or (dd) that the release of the alien will threaten the safety of the community or any person, conditions of release cannot reasonably be expected to ensure the safety of the community or any person, and either (AA)— (AA) the alien has been convicted of (aaa) one or more aggravated felonies (as defined in section 101(a)(43)(A)), (bbb) one or more crimes identified by the Secretary of Homeland Security by regulation, if the aggregate term of imprisonment for such crimes is at least 5 years, or (ccc) one or more attempts or conspiracies to commit any such aggravated felonies or such identified crimes, if the aggregate term of imprisonment for such attempts or conspiracies is at least 5 years