Some performance improvements, on Windows this gives me a quite stable minimum latency