removed unnecessary code from mongodb cache