Programs won't run faster unless they're constantly grabbing stuff from storage. They'll only load faster. If you have an SSD, then then benefits are fairly minimal (maybe like a few seconds).
As for the question itself, shared libraries typically do not need to be moved over. Otherwise for best results, the entire application's folder should live in RAM disk. Also as noted, every time you power off or reboot, you have to put the files back in, so it may not be practical.