Optimized backend using destructive array operations