reworked to cache 5 pages at a time