MV Activate Switch when Skill is learned (YEP Skill Learn System)

Heyho!
I'd like to turn on a switch, when a certain actor learns a certain skill via Yanflys Skill Learn System. The only idea I have at the moment is to have a parallel common event that constantly checks if the actor has learned said skill, but I wonder if there is a more elegant way? I'd like to keep events that always run in the background to a minimum.
there might be, by skill note tag or actor notetag to turn on a switch.
or something insight the skill learn system.

but if multiple actors can learn the skill, is this actor based or skill based?
If it's just for one skill, just put something like this as a plugin below Yanfly (change actor id, skill id and switch id):

const _myEdit1_SceneLearnSkill_processLearnSkill = Scene_LearnSkill.prototype.processLearnSkill;
Scene_LearnSkill.prototype.processLearnSkill = function(skill, classId) {
_myEdit1_SceneLearnSkill_processLearnSkill.call(this, skill, classId);
if (this.actor().actorId() === 1 && skill.id === 10) {
$gameSwitches.setValue(10, true);
}
};

Original thread: https://forums.rpgmakerweb.com/threads/activate-switch-when-skill-is-learned-yep-skill-learn-system.183068/