caching, compression and tidy up.