Solving JPA cache issue