Optimization that ignores *.metadata/* files