Make cache script level instead of buffer level
Merge pull request #18 from faceleg/feature/fix-cache

Make cache script level instead of buffer level