Script cache

Added Caching to scripts.
yeah, the map sounds like an overall better idea.