Performance tweak in utils.get_services()