Windows 7 Startup Freezing with USB Flash Drive and SD Connected

Hello,

I get this problem when loading Windows 7 with UEFI and secure boot. When disconnecting all USB devices, it just works fine. The OS says that I have working USB 3.0 drivers and it just works fine inside the OS. I installed an ESU update which added support for secure boot, one of the latest updates of Windows 7. I want to fix this without always removing my USB devices temporarily. Any way? It is always stuck at CLASSPNP.SYS when I try in safe mode. I am using an UEFI class 2 system.

EDIT: It happens only with my USB flash drive, not at my USB mouse. Weird