Separate script to cache stuff