added config flag to deactivate cache if needed