; and (ii) public or private correctional or detention facility; (B) in the sealing order, require each entity or person described in subparagraph (A) to— (i) seal the record; and (ii) submit a written certification to the court, under penalty of perjury, that the entity or person has sealed each paper and electronic copy of the record; (C) seal each paper and electronic copy of the record in the possession of the court; and (D) after receiving a written certification from each entity or person under subparagraph (B)(ii), notify the petitioner that each entity or person described in subparagraph (A) has sealed each paper and electronic copy of the record. (3) Protection from perjury laws Except as provided in paragraph (5)(C)(i), the person who is the subject of a juvenile record sealed under subsection (a) or (b) or a parent of the person shall not be subject to prosecution under any civil or criminal provision of Federal or State law relating to perjury, false swearing, or making a false statement, including section 1001, 1621, 1622, or 1623, for failing to acknowledge the record or respond to any inquiry made of the person or the parent, relating to the record, for any purpose. (4) Law enforcement access to sealed records A law enforcement agency may access a sealed juvenile record of a person solely— (A) to determine whether the person is eligible for a first-time-offender diversion program; (B) for investigatory or prosecutorial purposes within the juvenile justice system; or (C) for a background check that relates to— (i) law enforcement employment; or (ii) any position that a Federal agency designates as a— (I) national security position