Handle for loops with RO access to shared variables