I want to shrink the memory consumption and size of DedicatedServer.exe to the bare minimum. What steps can I take to achieve this?

I want to shrink the memory consumption and size of DedicatedServer.exe to the bare minimum. What steps can I take to achieve this?