I developed a substance that returns a Slope mask based on the angles you set. You can download it on Substance Share here! https://share.allegorithmic.com/libraries/1172
e_ShadowsAdaprtScale i put mine at 1.2 and it got the shadows on all the small wires to look nice. I'm not sure if this is the magic number but it's probably different depending on the area.