Device list loading fails for big device lists (> 1M) #818