def METHOD_NAME(fname, save_every):
    """ Compute the execution time of static/dynamic runs as well
    logz value """
    if cache.dt is None:
        cache.dt = {}
        cache.logz = {}
        print('caching', file=sys.stderr)
        for dynamic, with_pool in itertools.product([False, True],
                                                    [False, True]):
            t0 = time.time()
            if with_pool:
                npool = 2
            else:
                npool = None
            curlogz = fit_main(fname, dynamic, save_every,
                               npool=npool).results['logz'][-1]
            try:
                os.unlink(fname)
            except:  # noqa
                pass
            t1 = time.time()
            cache.logz[dynamic, with_pool] = curlogz
            cache.dt[dynamic, with_pool] = t1 - t0
            print(f'done {dynamic} {with_pool}', file=sys.stderr)
        print('done caching', file=sys.stderr)
    return cache.dt, cache.logz