Short-term and long-term data retention