private DiskStorage.Inserter startInsert(final String resourceId, final CacheKey key)
      throws IOException {
    maybeEvictFilesInCacheDir();
    return mStorage.insert(resourceId, key);
  }
Creates a temp file for writing outside the session lock
imagepipeline-base/src/main/java/com/facebook/cache/disk/DiskStorageCache.java