Visual Studio 2019 16.9 update caused long delays in CUDA file compilations

Just updating Visual Studio 2019 to version 16.9 started causing delays in compiling CUDA files. Visual Studio just hangs and waits for minutes and then suddenly the CUDA file compilation starts and proceeds at the normal speed. I also updated CUDA to 11.2 but the same problem persists. We are using CMake to set up the Visual Studio project and there are tens of CUDA files. Happens both in Debug and Release build modes.