Get script caching right