change to low level caching
refactor sendgrid_stats_helper