Optimize Category find-by-id by using a hash.