minor code simplification in render cache