Fixed #2. Added basic caching features and optimized temperature retrieval a bit