I have used them for my firearms and they work well for that,
so I cannot see why they would not work equally well for straight razors.
After all I do keep straight razors in my gun safe for long...