Optimize sources in the release/* branches and before running tests on Travis