a new version of cachemean.R (perhaps the last one)