The amount of RAM has nothing to do with latency ... once you have enough to load your system and programs, plus your DAW with it's project, plugins, and samples, you are all set. Modern motherboard chipsets, memory controllers, and RAM are among the fastest components on a current PC. That's why flash disk drives are so fast.
The audio hardware and drivers can be the biggest issue for DAW performance.
Sometimes you have to adjust the size of your audio buffers to allow for what you are doing. The default does not always work best for all situations. Small buffer sizes give you the benefit of low latency at a cost of CPU usage. Large buffers take less CPU, but creates longer latency. You need to find the balance that works for your project and your system. This applies to all DAWs.
Hopefully you are using a decent dedicated audio interface with low latency ASIO drivers. But if not, and you are running Windows 10 and Platinum, you could check out the improved Sonar WASAPI driver for Win 10 just introduced in Sonar Platinum update 2016.11.
http://static.cakewalk.co...AR_2016.11_Release.pdf For adjusting audio buffers, look at these knowledge base articles:
I'm getting a delay or latency when recording or performing synths
https://www.cakewalk.com/...g-or-performing-synthsAudio Dropouts, Clicks and Pops When Playing and Recording
Audio Driver Latency/Buffer Size Needs to be increased if you are experiencing dropouts in the sense that the audio engine is completely stopping and your Cakewalk software is reporting "DROPOUT" in its Control Bar or Status Bar
https://www.cakewalk.com/...-Playing-and-Recording