Fix performance issue with many databases (when only_db is defined)