Allow dynamic memory growth so large files are supported