cache files ranked as they are needed