PERF: used inbounds access to arrays