How can I enable optimizations for specific modules in Debug builds?

In the module.build.cs I have enabled OptimizeCode = CodeOptimization.Always; however this doesn’t appear to actually turn on code optimizations during Debug builds. I have one performance critical module that I’d like to keep optimized while the rest of the game modules run unoptimized + debug info turned on. Is this possible?