more work on pathway_timing_dprime.py
extracted cache decorator