An alternative that could provide the sodium and potassium: boiled potatoes with some parmesan as a ride snack... see Allen Lim's "recipe":

https://www.youtube.com/watch?v=Nwt-DUpKPYA

A friend in a group ride brought some to distribute during a ride. It was a fun treat during our ride. I would add a bit of salt.

His various recipes for rice cakes are great, too. Here is one:

https://www.youtube.com/watch?v=5UiuqIWGe_s

I tried one that had mixed scrambled eggs, some nut butter (almond, in my case), cashews and bacon. Yum. Had one during a 58 miles ride and I was not hungry for hours after it! I will make those again, but using chopped prosciutto instead of bacon (no frying required).

I tried endurolytes once and my stomach felt crampy for several miles.