Changes to make in-memory file size configurable