Optimize mediawords_update_processed_stories.pl