Switching build configurations triggers recompilation

When I switch from “DebugGame Editor” to “DebugGame” configuration without any code changes, UBT recompiles around 440 source files as if they weren’t compiled already for that configuration. Is there any way to make it not recompile when I switch configurations ?

I think I know why. Even though you have multiple configurations in Visual Studio, With UBT each configuration does NOT produce a separate dll/exe like in a normal C++ project configuration. So basically switching configurations triggers needless recompilation.