400ms delay between ATT Write request and response

Hi, 

On a nrf52840 running SDK 17.0.2 and Softdevice 7.2, while being connected to two devices in central and peripheral role, I observe that on the connection 
where the nrf is in peripheral role, a whopping 400ms delay between an ATT write request and its response (detected and measured with wireshark)

In the Message sequence diagram "GATTS write request without authorization"  I get the impression that the response is sent "immediately"  by the softdefice,
where that immediately intuitively is in the 20ms range rather than 400ms..

My questions are:

- What influences the observed delay (I suspect connection parameters a bit..)

- Can I have influence on this in such way that the delay is reduced?

I can see that if I disconnect the peer in peripheral role (where the nrf is central) the delay drops to some 20-50ms.

Thank you, jmr.