Quality speedy graphics compilation and caching with Sweave