Changed cache for data from Derby DB to in-memory