Optimize the ajax speed