If you're working on the API or hammer and recreate the cache often, the $subject will create only en locale which speeds things up. Of course, replace en with your locale du jour.
FOREMAN_APIPIE_LANGS=en rake apipie:cache:index
could speed things up significantly. It generates just the index (good
enough for hammer) and not the full API docs.