I had got a solution for using a single core files with multiple databases.
I am using an external portal site and it authenticate to moodle.
When an user authenticates i will got current user's db name and invoke it as a COOKIE Variable.
But, my alternate url will be the common single core url.
This works great. We have tested it with more than 200 databases.