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