Reducing size of ringbuffer to 1024 * 1024

This appears to have produced a small speedup.