Vector of Atomics

I’m aware of the Atomic{Int8} type, which wraps an Int8 into an atomically modifiable value. Internally, this is a mutable struct containing the Int8, and it seems to be the only possibility since by nature the Int8 must reside in memory.

However, I’d like to have an array of (say 10 billion) atomics. Performance and memory footprint become horrendous with an array of 10 billion mutable structs. Is there a way in Julia to create such an array (and apply atomic_cas! etc. to its individual entries)?