(refactor) Refactored to use UnsafeCell and avoid heap allocations.
(doc) Updated README for allocation changes.