### Godot version

4.0 beta 17

### System information

Windows 11, Forward+, RTX 4090

### Issue description

In the latest beta, baking LightmapGI has taken a big performance hit. The baking itself might not be the problem, it's the (Re)Importing Assets step for the `.exr` that seems to take all the time.




### Steps to reproduce

I've included a repro project to demonstrate it. Click the `LightmapGI` node and then the `Bake Lightmaps` button.

Before Beta 17:
`Done baking lightmaps in 00:00:01.`

With Beta 17 (and the latest Master branch, just in case):
`Done baking lightmaps in 00:00:08.`



### Minimal reproduction project

[lightmap-regression-repro.zip](https://github.com/godotengine/godot/files/10579835/lightmap-regression-repro.zip)

{
		Vector<MeshesFound> meshes_found;
		_find_meshes_and_lights(p_from_node ? p_from_node : get_parent(), meshes_found, lights_found, probes_found);
		if (meshes_found.size() == 0) {
			return BAKE_ERROR_NO_MESHES;
		}
		
		
		for (int m_i = 0; m_i < meshes_found.size(); m_i++) {
			if (p_bake_step) {
				float p = (float)(m_i) / meshes_found.size();
				p_bake_step(p * 0.1, vformat(RTR("Preparing geometry %d/%d"), m_i, meshes_found.size()), p_bake_userdata, false);
			}
			MeshesFound &mf = meshes_found.write[m_i];
			Size2i lightmap_size = mf.mesh->get_lightmap_size_hint();
			if (lightmap_size == Size2i(0, 0)) {
				
				
				lightmap_size = Size2i(64, 64);
			}
			lightmap_size *= mf.lightmap_scale;
			TypedArray<RID> overrides;
			overrides.resize(mf.overrides.size());
			for (int i = 0; i < mf.overrides.size(); i++) {
				if (mf.overrides[i].is_valid()) {
					overrides[i] = mf.overrides[i]->get_rid();
				}
			}
			TypedArray<Image> images = RS::get_singleton()->bake_render_uv2(mf.mesh->get_rid(), overrides, lightmap_size);
			ERR_FAIL_COND_V(images.is_empty(), BAKE_ERROR_CANT_CREATE_IMAGE);