Stricter error checked when using SharedBuffers