Just curious why these ship that are carring valuable cargo..oil, tanks, food, etc, just pay a small team of guards to be on board.
Mount a couple 50 Calibre on each end and sides, then riddle any intruders like swiss cheese. This will be a lot less cost than the ransom would be if captured.