JPA tuning