I noticed that m_sec_params passed to sd_ble_gap_authenticate(uint16_t conn_handle, ble_gap_sec_params_t const * const p_sec_params) has been declared as a static variable in the example main.c . This consumes available memory space.
Can this be safely passed as an automatic stack variable or declared as a const and kept in the flash memory?