added cache for mongodb class