Improve Travis script performance