add a little more caching - only about a 5% speedup, but that's still worth doing.
Also enable caching for travis.