Performance Improvement for getDomainClasses()