This could be as simple as commenting on each key for which profile it is useful.
#Required by Profiles: All
#Required by profiles: Admin, Worker
but it could more "intelligent" and leveraged in other place, e.g. during startup sequence verifications are done that the configured keys are matching the specified profile. By configured key we mean the key has value (not null).