Improved preformance while resolving class.