Ensure statements are reset before being cached.