No clue what you are asking, the title is totally different than your question.
VPN will not be affected by RAM speed.
Why would your VPN be disconnected unless you have a time-out set on it or disconnected it manually.
Or do you mean that VPN won't connect now? And why would you clean your RAM sticks? You should clean out dust from your PC with a blower, but leave the RAM alone. RAM has no direct connection to VPN.