### 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)

for (const uint32_t index : p_simplex_indices) {
		int side = _bsp_get_simplex_side(p_points, p_simplices, best_plane, index);
		if (side == -2) {
			continue; 
		}
		if (side <= 0) {
			indices_under.push_back(index);
		}
		if (side >= 0) {
			indices_over.push_back(index);
		}
	}
#ifdef DEBUG_BSP
	print_line("node " + itos(node_index) + " found plane: " + best_plane + " score:" + rtos(best_plane_score) + " - over " + itos(indices_over.size()) + " under " + itos(indices_under.size()) + " intersecting " + itos(intersecting));
#endif
	if (best_plane_score < 0.0 || indices_over.size() == p_simplex_indices.size() || indices_under.size() == p_simplex_indices.size()) {
		ERR_FAIL_COND_V(p_simplex_indices.size() <= 1, 0); 
		
		
		
		
		
		
		
		WARN_PRINT("Inconsistency found in triangulation while building BSP, probe interpolation quality may degrade a bit.");
		LocalVector<Vector3> centers;
		AABB bounds_all;
		for (uint32_t i = 0; i < p_simplex_indices.size(); i++) {
			AABB bounds;