Merchandise upon which any duties or charges are unpaid, remaining in bonded warehouse beyond 5 years from the date of importation, or such longer period of time as the Bureau of Customs and Border Protection may at its discretion permit upon proper request being filed and good cause shown, shall be regarded as abandoned to the Government and shall be sold under such regulations as the Secretary of the Treasury shall prescribe, and the proceeds of sale paid into the Treasury, as in the case of unclaimed merchandise covered by section
1493 of this title, subject to the payment to the owner or consignee of such amount, if any, as shall remain after deduction of duties, charges, and expenses. Merchandise upon which all duties and charges have been paid, remaining in bonded warehouse beyond 5 years from the date of importation, or such longer period of time as the Bureau of Customs and Border Protection may at its discretion permit upon proper request being filed and good cause shown, shall be held to be no longer in the custody or control of the officers of the customs.