Attempt at fixing massive memory usage issues

C# is terrible..