Did Thomas Jefferson write that before or after he sent the Marines against the Barbary pirates, in order to allow U.S. merchant ships freedon of navigation?
1815 was after Jefferson's presidency, and during James Madison's Administration.
BTW, the Barbary Pirates attacked ships on the open sea and demanded ransom or tribute.
They were NOT charging legitimate tariffs on goods delivered to their ports.