Fixes engine startup time regression described here: https://github.com/godotengine/godot/issues/43351#issuecomment-847466783