A serious and sensible solution to problem would be to ask the government of Singapore to have vessel on station. Any captured pirates could then be transferred to that for trial. Singapore law of course allows for the execution of pirates
All perfectly legal and above board.