A banana has 11% of RDA. I'd eat that instead.
But it'll only help if your cramping is due to low potassium. In my experience on the bike cramping is more likely to be caused by dehydration, low sodium (on a long hot ride/race) or most commonly, overuse.