Add SharedMap implementation that allows for direct array access.