We need to bring back the law of the sea and simply hang all pirates that are captured. That is, the ones that surrender. The others are already dead.
One thing the Brits got right was keelhauling, preserving the body in tar then hanging it on a yard arm in port for display until it eventually went away.
The other good practice was chaining the guilty to the warf in the Thames and letting the tide rise over him then preserving the body with tar and then displaying it until it went away.
Cool. Civilization and organization are such great fun.