make sure to use cached buffers only when frequent cpu access is needed. also, always flush buffers after they are allocated and cleared.