ADDED: Added basic caching functionality. Additional configuration parameters