Are there some possibilities to configure following caches in order to keep cache data for only some important entity types and for the entire life cycle of the EntityManagerFactory.
Cache of database file pages.
Cache of query programs.
Cache of query execution results.