cache results of numerical diff