Which ones are you referring to? There shouldn't be any 'foreach' statements at run-time unless you're running it on Flash or Windows Phone 8. ActiveAnimation and getting touchCount from UICamera still needs the foreach, but those are generally not used every frame.