added self as arg to init_pdf_cache