migrated some array reads/writes to cas