How to avoid archiving unnecessary events