Added Persistent Cache for Scripting, Reformated Code