Precompute slug-> mapping. #165