that the State agency shall establish a system and take action on a periodic basis—
(A) to verify and otherwise ensure that an individual does not receive benefits in more than 1 jurisdiction within the State; and
(B) to verify and otherwise ensure that an individual who is placed under detention in a Federal, State, or local penal, correctional, or other detention facility for more than 30 days shall not be eligible to participate in the supplemental nutrition assistance program as a member of any household, except that— (i) the Secretary may determine that extraordinary circumstances make it impracticable for the State agency to obtain information necessary to discontinue inclusion of the individual; and (ii) a State agency that obtains information collected under section 1611(e)(1)(I)(i)(I) of the Social Security Act ( 42 U.S.C. 1382(e)(1)(I)(i)(I) ) pursuant to section 1611(e)(1)(I)(ii)(II) of that Act ( 42 U.S.C. 1382(e)(1)(I)(ii)(II) ), or under another program determined by the Secretary to be comparable to the program carried out under that section, shall be considered in compliance with this subparagraph.