Better memory management in Cron.php