Implemented rather primitive data caching.