pub const HISTORY_CLEANUP_BATCH_SIZE: usize = 100;
Number of messages to remove when history exceeds the maximum. This provides a buffer to avoid frequent cleanup operations.