To avoid usual caricature, create npc as a character.
Background, actual motivations, hope or plans for the future.
Those informations can help roleplay unusual situation of bargain, hostage, share loot, cooperation, etc.
All pirates come from somewhere, and have hope to get a better life.
Even...