cache data from whole pdf at once