Improves (but does not fix) memory leak.

Chrome struggles with garbage collection of typed arrays