Better security config