flagged potential optimizations