Use the cheapest grade that doesn't ping is the simple answer. Nail the throttle from about 3000 rpm, uphill is even better, if it pings, go to the next grade. Higher octane doesn't have more stored energy than lower, it resists detonation at higher compression so you can have a higher state of tune.