Memory management tips for ATS