Hm, or maybe the PhpDumper is handling that?  I don't understand the dumper code well enough to understand if it is.  If the dumped code is more optimized than this and would not iterate over all services every time a synchronized service changed, that's good enough, I think.  If it would still use this method, then this method should be optimized.