attempt to speed up ktest by caching pdf parse tables

**do not review yet**