What led to Khazar having to put less strain on its military