fix warning in cache layer
revert the use_guards type. We can introduce a new option for the 'evaluate' value later if needed.
fixes #3
remove unnecessary check