Decrease exp rate with Increasing actor's level.

First of all I Have no idea whetter that kind of plugin exists or not, but I need to achieve something like that:
My heroes level cap is between 1 - 10 and on each level actor (by default gains 100% exp for every defeated battle regardles of his level). What I want is to make this kind of exp rate:

Level 1 - 100% Exp Rate
Level 2 - 90% Exp Rate
Level 3 - 85% Exp Rate
Level 4 - 80% Exp Rate
Level 5 - 70% Exp Rate
Level 6 - 65% Exp Rate
Level 7 - 50% Exp Rate
Level 8 - 40% Exp Rate
Level 9 - 35% Exp Rate
Level 10 - 0% Exp Rate (no Exp gain since it's max level).

I know I can do it by creating 10 states and simply replacing them with actors level, but I wonder is there a way to aproach this
with something... Nice.
One option could be to use a plugin like Yanfly's Special Param Formula with something like this for the EXR parameter:
Code:
[1.0, 0.9, 0.85, 0.8, 0.7, 0.65, 0.5, 0.4, 0.35, 0][user.level - 1]
Then if the user was, for example, level 1, it would return the 1st entry (index 0) of the array which here is 1.0 = 100%. 🙂

If you wanted to combine this with the value from traits, I think you'd just need to multiply by base, i.e.
Code:
base * [1.0, 0.9, 0.85, 0.8, 0.7, 0.65, 0.5, 0.4, 0.35, 0][user.level - 1]
Thank you @caethyril - first option works perfectly 😀

Original thread: https://forums.rpgmakerweb.com/threads/decrease-exp-rate-with-increasing-actors-level.107267/