I've written some scripts that has dealt with quite a few variations. (Not nearly as many though).
If the geometry is constant, just get the element id's - either by using a path or a set that contains the element id's.
Regardless of the number of ODBs, it would still be viable to traverse...