Optimize table setup