function maintainMemoryStorage() {
        let timestamp = (new Date()).valueOf()
        let oldestOkTimestamp = timestamp - 600000
        for (let [key, value] of messagesForDashboard.entries()) {
            if (key < oldestOkTimestamp) { messagesForDashboard.delete(key) }
        }
    }
Here we remove any memories that are older then 10 minutes.