They often don't use speedboats, just a small boat launched from a dhou, which can in turn get awfully far out into the Indian Ocean. Photos below are of the dhou and small boat taken down by the USS Winston S. Churchill in 2006.
Here's the Churchill and the dhou. The pirates probably needed clean undies after the encounter.
Gonna avoid the whole northwestern quarter of the IO? Better to take the Jeffersonian route and blast the pirates. The ship below has done it before, circa 1805. Those were Musselman(Muzzie) pirates too.
Give her a few .50s and maybe an old 20mm and she'd be good to go against the pirates. She is still a commissioned US Warship, the USS Constitution.
OORAH!
John Paul Jones or Lord Nelson could take 'em.
OLD IRONSIDES BUMP!!! I love that ship and all she stands for.