Zoogster, the type of piracy that is fairly common along the Caribbean coasts of Colombia and Panama is not the type you have described, which occurs in SE Asia and the Red Sea. In Colombia and Venezuela, boats at anchor at night are boarded and attacked. We left Colon's massive ship breakwaters, and were soon out of sight of land in VERY rough and windy water. Nobody is out in the middle of the Carib in 30 knot winds and 14 foot steep close-period waves hoping that a sailboat passes by. It wouldn't pay! The Carib pirates just sneak up on anchored sailboats in sheltered coves, after watching them from shore or from a passing fishing vessel, and sizing them up. In some cases, the armed crews successfully fight them off. More often, the pirates win. Still, it is very uncommon.
In Panama itself, we were at least as safe aboard our boat than in, say, the Port of Miama. The city of Colon is a wretched nightmare, to be avoided, but the boat was safe within the so-called Panama Canal Yacht Club nearby. On the Pacific, Balboa is as safe as San Diego, or safer.
I was sorry to drop the guns, but I don't regret it. When a squad of armed Mexicans come aboard your boat with M-16s and a German Shepherd, you are at their mercy. If they had decided to "really" search the boat and had found even one bullet, you would be reading about Travis McGee's sad Christmas in a Mexican prison. And we really had to get the fuel, no ifs ands or buts. Hiding the guns was not a choice, and neither was bouying and cacheing them. Believe me, I considered both options long and hard.
Now I'm in FL, where I can buy replacement boat guns as easily as motor oil