getTableByName implemented in cache (temp hack)