added an accounts in memory check before making calls to redis