Add pdf preview and improved memoizing

14 jobs for add-pdf-preview in 33 minutes and 34 seconds (queued for 2 seconds)