HHH-7866 Avoid redundant log level checking in StandardQueryCache
HHH-7866 Cleanup and added a few more checks
HHH-6643 Criteria doesn't support a chaining of 2 not restrictions (sql
= not not criterion)