Free cache to avoid app-crash when rendering large pdf files