Optimized for locals added (deep)