This reminds me of the gc_disable() PR that reduced composer install times by half a few months back.