Utilized the size of the tables.

Signed-off-by: Tianyu Ge <tianyu@vt.edu>