Caching for faster compilation