`cacheMode == CacheMode.LOCAL || cacheMode == CacheMode.REPL_ASYNC || cacheMode == CacheMode.REPL_SYNC` is better written as:

`!cacheMode.isClustered() || cacheMode.isReplicated()`