Fix a border line, x miles off of the coast of Somalia and blow out of the water any boat that crosses the line. It would stop pirating in no time at all.