Currently it loads all tables in memory and then processes them all, which is not the way to go on something like this...