Following the idea, a ruler could be appointed as lord of a region, making it an Imperial Region (yes, bringing the concept back) whose taxes go fully into Realm Share, not incurring in the penalties as Imperial Regions ruled by non-king lords.
If a ruler's region is imperial, though, that would prevent him from also being a duke at the same time. A simple tax exemption would not have this (considerable) restriction.