set filename for cached function