Use SparseArray for better performance. It *should* be atomic, according
to the API.