The solution isn't making them not despawn, but make killing mobs actually does something, whether it's to weakaned the boss, pop more chest, secret paths. There are alot of option u can explore tbh.

but, screaming NERF NERF NERF just means you are not a thinker type imo.