Improve speed on indexes extraction for database with huge number of tables.