Cache

Global caching implemented