class CacheStorageWriter {

  void writeLocalConfig(
      DescriptorDigest imageId, ContainerConfigurationTemplate containerConfiguration)
      throws IOException {
    Path configDirectory = cacheStorageFiles.getLocalDirectory().resolve("config");
    Files.createDirectories(configDirectory);
    writeJsonTemplate(containerConfiguration, configDirectory.resolve(imageId.getHash()));
  }

    CacheStorageWriter(CacheStorageFiles cacheStorageFiles);

}