In the Android implementation, use a SparseArray in the Android's NativeMap.