; and (ii) not more than 5 days. (2) Weekly review required (A) In general With respect to an alien detained under subparagraph (B) of paragraph (1), not less frequently than once each week, the Secretary of Homeland Security shall conduct an individualized review to determine whether the alien should continue to be detained under such subparagraph. (B) Release In the case of a determination under subparagraph (A) that an alien should not be detained under paragraph (1)(B), not later than 24 hours after the date on which the Secretary makes the determination, the Secretary shall release the detainee. (g) Protective custody for LGBTI alien detainees (1) Detainees An LGBTI alien who is detained under subparagraph (B) or (C) of subsection (f)(1) may not be placed in housing that is segregated from the general population unless— (A) the alien requests placement in such housing for the protection of the alien; or (B) the Secretary of Homeland Security determines, after assessing all available alternatives, that there is no available alternative means of separation from likely abusers. (2) Placement factors In a case in which an LGBTI alien is placed in segregated housing pursuant to paragraph (1), the Secretary of Homeland Security shall ensure that such housing— (A) includes non-LGBTI aliens, to the extent practicable