squid already challanged the problems you're referring to
If you RTFM you will conclude that there is no need for a ram disk, squid already has a specialized cache fs in ram
Put has much ram you can in your machine and size the on disk cache according to the amount of ram