Added cache mechanism for local database in order to prevent data reload
in short inverals.