Slight speed up in Protocol::File when listing packages.

Prompted by
https://github.com/mfoemmel/fig/commit/c3c9b2a6b4df4402e28a3cd3141db431863346ee#commitcomment-5244269