Removed threading-unfriendly global buffers.