Cache certain values for the table sizing to prevent recalculations that cause extreme slowness.