cache the needalarm state