Possibly could be changed to lists:members check for data_expired.