There are some potential gotchas when using CentralIdLookup:
a. You can get a central ID from LocalIdLookup that could be used incorrectly. This can only be used on that same wiki, or on other wikis using shared user tables (these two cases should be different providers: T170996). If you're expecting (incorrectly) that the wiki is part of a farm, you may not realize you're using LocalIdLookup.
b. Central IDs can only be used on the same wikiset of wikis, but there is no way to identify which wikiset it came from. You can't even identify the provider from the string serialization of the ID.
This makes it hard to use the central IDs in a fool-proof way cross-wiki.
Possible solution that addresses both: Make the canonical central ID a string, with a UID identifying the wikiset it came from, then the user-specific part after. E.g.
56e0cfd98f3fcf2abf0d6:123
That would then be mapped by the provider to whatever ID it uses internally.
For standalone wikis, it would make a wikiset of 1 with a UID generated at installation time. For other installs (e.g. CentralAuth or shared user tables), they would all use the same wikiset ID.