Extreme improvements on CPU and memory usage