File dataDir = new File(cacheDir);
File databaseDir = new File(dataDir, "db");
IDBI localStorageManagerDbi = createDataSource(typeRegistry, databaseDir, "StorageManager");
DatabaseLocalStorageManagerConfig storageManagerConfig = new DatabaseLocalStorageManagerConfig()
.setCompressed(false)
.setDataDirectory(new File(dataDir, "data"));
LocalStorageManager localStorageManager = new DatabaseLocalStorageManager(localStorageManagerDbi, createTestingBlockEncodingManager(), storageManagerConfig);
NativeDataStreamProvider nativeDataStreamProvider = new NativeDataStreamProvider(localStorageManager);