Caching results should occur after variables are uploaded, fixes #65.