Unreal shadow quality settings. Your optimization problem, is not shadows.