Revert "Revert "Further possible fix to reduce memory usage (#6390)" (#6468)"
Revert "Revert "Further possible fix to reduce memory usage (#6390)" (#6468)"

This reverts commit 7ad9e89f0ec1a9b57d12e6372b68e15f0df5ae16.

brettfo/visualfsharp,dsyme/fsharp,dsyme/fsharp,dsyme/fsharp,brettfo/visualfsharp,dsyme/fsharp,dsyme/fsharp,cloudRoutine/FSharp.Compiler.Service,brettfo/visualfsharp,brettfo/visualfsharp,brettfo/visualfsharp,dsyme/fsharp,dsyme/fsharp,cloudRoutine/FSharp.Compiler.Service,brettfo/visualfsharp,cloudRoutine/FSharp.Compiler.Service