Simplified the computation of cached probabilities