anchor.diff:              KiF2 = maps:fold(fun(K, _V, Acc) ->
                   maps:put(K, Ref, Acc)
               end, KiF, CachedKeys),
  -            {#{}, KiF2}
  +
  +            {#{}, KiF2, #{}}
       end,
   
       case application:get_env(?CLUSTER_WORKER_APP_NAME, tp_gc, on) of
  
positive.code:     requests_ref = Ref,
      keys_in_flush = KiF,
      cached_keys_to_flush = CachedKeys,
      keys_to_inactivate = ToInactivate
  }) ->
      {NewCachedKeys, NewKiF} =
          case application:get_env(?CLUSTER_WORKER_APP_NAME, tp_fast_flush, on) of
          on ->
              KiFKeys = maps:keys(KiF),
              ToFlush = maps:without(KiFKeys, CachedKeys),
  
              case maps:size(ToFlush) of
                  0 ->
                      {CachedKeys, KiF};
                  _ ->
                      Waiting = maps:with(KiFKeys, CachedKeys),
  
                      KiF2 = maps:fold(fun(K, _V, Acc) ->
                          maps:put(K, Ref, Acc)
  
negative.code:     case maps:size(ToInactivate) > Max of
          true ->
              datastore_cache:inactivate(ToInactivate2),
              State#state{keys_to_inactivate = ExcludeMap,
                  keys_times = maps:with(Exclude, KeysTimes),
                  flush_times = maps:with(Exclude, FT)};
          _ ->
              MaxTime = application:get_env(?CLUSTER_WORKER_APP_NAME,
                  tp_active_mem_sek, 5),
              MaxTimeUS = timer:seconds(MaxTime) * 1000,
              Now = os:timestamp(),
  
  