Optimize .mailer_actions query