CAS circular buffer