[DF-1155] remove cacheValid variable and use initial value from the shader itself