They will do what the gangs here do. They will all start carrying ladders to hide the pirates. Every boat will have a boarding ladder.
In the US, gangs of street thugs will all wear exactly the same outfit while one of them commits a crime. When the police arrive and get witness statements, there are 20 or 30 people in the street who look exactly like the suspect.
Young black male, white t-shirt, and blue jeans...
There is no way for the cops to figure it out.
What you do is wear TWO wildly different tee shirts, one for the crime, one for when the cops shows up. If it gets to court, your public defender be using one of the variations of the famed "Tyrone" defense.
Defense attorney dress look-alike Tyrone in an outfit similar to the witness statements and get a mis-identification.
"Your honor, this ain't be my client. Be Tyrone."
Just kill all of them.