My take on cramps? They are usually the lack of something. Sodium, potassium, etc. For a lot of us, once we eat that missing ingredient the cramp goes away fast. So, keep trying different things until you find what works and keep that item on hand. Now, you may be able to massage, stretch or otherwise tame that cramp, but still, see if you can find the missing nutrient so it doesn't happen in the first place.
I have had really good luck using the sports drink Vitalyte in my waterbottles. Cramps are very rare. (Sodium, potassium and glucose in a mix formulated for fast absorption.) It's been around 50 years and it works. Small budget company and they have never had the advertising power to compete. REI may stock it. (They don't sell a lot but some of the employees know how good it is and sometimes have enough say to keep it on the shelves.) Ordering directly from Vitalyte is quick and easy. (The name has evolved over the years. Gookinaid - Gookin was the founder and formulator, ERG, Hydralyte and probably others.)