Optimization over l×m× n integer threeway tables is NP-hard already for fixed l = 3, but solvable in polynomial time with both l,m fixed. Here we consider huge tables, where the variable dimension n is encoded in binary. Combining recent results on Graver bases and recent results on integer cones, we show how to handle such problems in polynomial time. We also show that a harder variant of the ...