Created a shared buffer to use less memory