Uses smarter cache for pascal coefficients