Baking landscape textures - Performance

Hi all! I made a huge landscape using world machine and I imported it on UE4, and I started painting materials. I noticed the engine was baking landscape textures while I was painting, and it was lagging. Is there a way to make it work faster? I noticed it doesn’t use much CPU, so I guess it’s the GPU that does all the work?