To avoid unnecessary inspection of merchandise imported from a contiguous country at the first port of arrival, the master of the vessel or the person in charge of the vehicle in which such merchandise is imported may apply to the customs officer of the United States stationed in the place from which such merchandise is shipped, and such officer may seal such vessel or vehicle. Any vessel or vehicle so sealed may proceed with such merchandise to the port of destination under such regulations as the Secretary of the Treasury may prescribe.