Some bathing suits I've owned have a little mesh pocket on the inside of the waistband. I am comfortable putting a folded $20 bill in there, in case I want a sno-cone or something. If the ocean decides it's gonna take that $20, so be it...I accept the risk for the functionality it offers.
Not gonna put my life savings in that little pocket, though.