Custom cache validation.