Should I create image using linear gamma or 2.2 gamma then modify within UE4?

Doesn’t unreal engine compress textures before applying gamma? Wouldn’t you want diffuse textures and any human readable textures using sRGB and any math based texture using linear?