In all seriousness, I think the best solution is not to store the straight razor in the bathroom. I have never worried about that with DE razors but they are generally plated with chrome/nickel/etc, bakelite/plastic or stainless steel. Storing anything that is bare carbon steel in a bathroom is just asking for trouble regardless of any precautions you may take to guard against rust.

Bob