Change Parameter Only When Specific Actor Has Specific Class

Here's an example situation. Say I've set up some NPCs that, through dialogue, allow an actor to be "retrained" into a new class. So, for example, Harold can swap between being a Warrior, a Mage, and a Cleric.

Now, lets say I want to give Harold a permanent 'perk' as a side quest reward, so that he has +200HP but only while he's a Warrior. If Steve changes to a Warrior, he shouldn't have the perk, and if Harold changes to Mage, he shouldn't have the perk, but when he swaps back to Warrior, he should.

Any idea how I would do this?
How do they change classes?

Can you just set up two warrior classes, one with the +200HP and one without, and only let Harold switch to that class after the side quest is completed, but everyone else (and Harold before the side quest) get the other version.
I was thinking just through an event. (i.e. >"I want to be a Mage!" >Change Actor Class: Mage)

The problem I foresee with using multiple Classes is that, if an actor is to accrue multiple perks of this kind, there would have to be a copy of each class for every combination of perk for each actor.

I had looked at a plugin solution for this; Yanfly's Class Change Core and Skill Learn System have an interaction where you can buy a skill that permanently raises an actor's parameter. But it persists when you change classes, even if the new class does not have this skill. So that didn't work out.

Is there perhaps another plugin that could do this?

Original thread: https://forums.rpgmakerweb.com/threads/change-parameter-only-when-specific-actor-has-specific-class.85352/