Migrations stored as serialized php are of course not very readable, but they can be more efficient in terms of cpu and memory usage for the case of mass migrations.
Since php 7.0, the allowed_classes option allows safe calling of unserialize().
We should take advantage of that