Important optimization: only do Storage::getTables() once.