; and (F) ensure that all transactions are routed through such gateway. (4) State agency action Each State agency shall ensure that all of its benefit issuers connect to such gateway. A State agency may opt to require its benefit issuer to route cash transactions through such gateway, subject to terms established by the Secretary. (5) Routing of transactions through a national gateway (A) In general Before the Secretary implements in all the States a national gateway established under paragraph (2), the Secretary shall conduct a feasibility study to assess the feasibility of routing transactions through such gateway. (B) Feasibility study The feasibility study conducted under subparagraph (A) shall provide, at a minimum, all of the following: (i) A comprehensive analysis of opportunities and challenges presented by implementation of such gateway. (ii) One or more options for carrying forward each of such opportunities and for mitigating each of such challenges. (iii) Data for purposes of analyzing the implementation of, and on-going cost of managing, such gateway. (iv) One or more models for cost-neutral on-going operation of a national gateway. (v) Other criteria, including security criteria, established by the Secretary. (C) Date of completion of study The Secretary shall complete the feasibility study required by subparagraph (B) not later than 1 year after the date of the enactment of the Agriculture and Nutrition Act of 2018 . (D) Implementation of a national gateway Not later than 1 year after the date of the completion of such study, the Secretary shall complete the nationwide implementation of a national gateway established under paragraph (2) unless the Secretary determines, based on such study, that more time is needed to implement such gateway nationwide or that nationwide implementation of such gateway is not in the best interest of the operation of the supplemental nutrition assistance program. (E) Report to congress If the Secretary makes a determination described in subparagraph (D), the Secretary