Or they could just dump floating debris from the cargo ship's stern that the debris field will not effect the cargo ship's propellers but will stop pirate's smaller boat's propellers when it try to chase after the cargo ship. Cargo ship could also zip-zag its course to create bigger debris field.