Improve pre-allocation when loading continuous data