Improved gradient table generation performance for two-stop gradients.