Performance improvement on hibernate.