Use ring buffers to speed pin reads and cap memory use