add diskcache memoizing to const_dt so that multiple calls to const_dt with the same arguments just return the correct result