Mastery Upgrades

Mastery Tokens can be spent on four upgrades (blue up-arrow at the top left corner of the barrels list). They are both unlocked with the Barrel Mastery. They all have the same costs. The last one, which increases the v4's boost, is unlocked at x500 Stars and requires the previous upgrade on Level 1 or higher.

More Magnets
Focus on this one first. Its boost is massive.

More Golden Scrap
The second worst one currently. A must have if you plan on getting tons of Golden Scrap; if you don't plan on farming soon you should get the other ones first.

More Tires
The second best one right now, it can double the tire gain speed. Very useful, as leveling the v5 is much faster then.

More Wrenches
Well, more wrenches, more v4 levels?

Better Boost
Can give hundreds of brick levels. Very good for getting more progress on stars.

Better Rewards
More magnets from the weekly team leagues, why not? You should ignore it if your team only gets the very small league rewards.

More Fragments
By far the worst one, as fragments are nearly useless.

More Steel Beams
The third best currently, as it doubles your beam gain.