Reduce number of AJAX requests