Add render target caching to render library