improving class loading for virtual methods