Unable to Load big VTI files in VTK.JS

I tried to reduce the object copies in my application but not much improvement. One thing I observed is that during that image loading the application takes up to 6 times memory of the size of the vti file and after few minutes it got stable to 2.5 to 3 times memory usage of vti file size. Same was observed with the online VolumeViewer example application. I’m still exploring what is consuming this much memory.