Make probability calculations coherency aware, which gives around 20% speed improvement.