Add in closure version of CachedRender