Get all data in ajax to improve performances