Temporary optimise that does only Myisam tables, tomorrow I will work on the Inno tables.