naive caching of render layers