On full and final discharge of the indebtedness under a mortgage deemed to be a preferred mortgage under
section 31322(d) of this title, a mortgagee, on request of the Secretary, a State, or mortgagor, shall provide the Secretary or the State, as appropriate, with an acknowledged certificate of discharge of the indebtedness in a form prescribed by the Secretary or the State, as applicable. If filed with the Secretary, the Secretary shall enter that information in the vessel identification system under chapter 125 of this title.