rdbms: optimize DatabaseDomain::newFromId() to remember the string form