Rewrite get_user_starred_files, improved performance