Added cache for Class instances inside AbstractInflater.