anchor.diff:      case user_ctx:is_direct_io(UserCtx) of
           true ->
               ExtDIO = file_ctx:get_extended_direct_io_const(FileCtx),
  -            LocationAns = case ExtDIO of
  +            case ExtDIO of
                   true ->
  -                    file_location_utils:get_new_file_location_doc(FileCtx, false, true);
  +                    {FL, FileCtx2} =
  +                        file_location_utils:get_new_file_location_doc(FileCtx, false, true),
  +                    {?NEW_HANDLE_ID, FL, FileCtx2};
                   _ ->
  -                    sfm_utils:create_delayed_storage_file(FileCtx, UserCtx)
  -            end,
  -
  -            {?NEW_HANDLE_ID, LocationAns};
  +                    {#document{value = FL}, FileCtx2} = sfm_utils:create_delayed_storage_file(FileCtx, UserCtx),
  +                    {?NEW_HANDLE_ID, FL, FileCtx2}
  +            end;
           _ ->
               % open file on adequate node
               FileUuid = file_ctx:get_uuid_const(FileCtx),
  
positive.code: open_file_with_extended_info_insecure(UserCtx, FileCtx, Flag, HandleId0) ->
      SessId = user_ctx:get_session_id(UserCtx),
      {#document{value = #file_location{provider_id = ProviderId, file_id = FileId,
          storage_id = StorageId}}, FileCtx2} =
          sfm_utils:create_delayed_storage_file(FileCtx, UserCtx),
      {SFMHandle, FileCtx3} = storage_file_manager:new_handle(SessId, FileCtx2),
      SFMHandle2 = storage_file_manager:set_size(SFMHandle),
  
negative.code: create_file_insecure(UserCtx, ParentFileCtx, Name, Mode, _Flag) ->
      FileCtx = create_file_doc(UserCtx, ParentFileCtx, Name, Mode),
      try
          {HandleId, FileLocation, FileCtx2} = open_generic(FileCtx, UserCtx),
          fslogic_times:update_mtime_ctime(ParentFileCtx),
  
          #fuse_response{fuse_response = #file_attr{size = Size} = FileAttr} =
  