code: public MapConfig setOptimizeQueries(boolean optimizeQueries) {
          validateSetOptimizeQueriesOption(optimizeQueries);
          if (optimizeQueries) {
              this.cacheDeserializedValues = CacheDeserializedValues.ALWAYS;
          }
          //this is used to remember the method has been called explicitly
          this.optimizeQueryExplicitlyInvoked = true;
          return this;
      }
docs: Enable de-serialized value caching when evaluating predicates. It has no effect when {@link InMemoryFormat}
  is {@link InMemoryFormat#OBJECT} or when {@link com.hazelcast.nio.serialization.Portable} serialization is used.
  
  @param optimizeQueries {@code true} if queries should be optimized, {@code false} otherwise
  @return this {@code MapConfig} instance
  @see CacheDeserializedValues
  @deprecated use {@link #setCacheDeserializedValues(CacheDeserializedValues)} instead