Optimized class loading