@ayufan I've decided to implement only the aplication_setting storage just because a token regeneration on a HA environment would be a hard implementation, it would require me to learn how all things are connected and design something like a redis pub/sub for token propagation. As this is also my first Ruby contribution, I would had to study Ruby's very basics.
If my MR changes are working, it should work for us, but this issue should only be closed if @dzaporozhets agrees that probably on-demand token regeneration isn't a good idea.