The OpenJPA implementation allows users the option of storing frequently used data in the memory to improve performance. OpenJPA provides concurrent data and concurrent query caches that allow applications to save persistent object data and query results in memory to share among threads and for use in future queries.
The WebSphere® Java Persistence API (WSJPA) extension to OpenJPA provides a read-only object cache that can improve performance in certain use cases.