One day, pirates learned they could get better interest on their treasure by putting it into banks than they could by burying it. But many had forgotten where they buried it and were not able to take part in this new world
I suppose the smart pirate would diversify their portfolio. Keeping it all the bank doesn't sound super smart for a pirate who might be unmasked and assets seized.
Certainly no form of wealth storage is without risks!