Caching method now checks whether input data is the same along with the input parameters when evaluating the probability.
Closes #524 (closed)