; and (2) require U.S. Customs and Border personnel to undertake periodic and continuing training on best practices and changes in relevant legal authorities, policies, and procedures applicable in connection with subsection (a) and paragraph (1). (c) Qualified resources (1) In general The Secretary shall provide resources and staff who are adequately trained and qualified to address the needs of children, including child welfare professionals, at each port of entry and Border Patrol station, in accordance with subsection (d). (2) Sufficient staffing The Secretary shall ensure that sufficient qualified child welfare professionals are available at each port of entry and Border Patrol station to accomplish the duties described in this section without prolonging the time children and apprehended parents and legal guardians remain in the custody of U.S. Customs and Border Protection. (3) Child welfare professionals The Secretary, in consultation with the Secretary of Health and Human Services, shall hire, or seek to enter into contracts with, independent child welfare professionals in order to do the following: (A) To provide child welfare expertise on-site on a full-time basis at any port of entry or Border Patrol station that has had not fewer than 25 children in custody— (i) on any day during the preceding fiscal year