datali is only used in allpairtest, make it lazy (cache decorator)