We can avoid executing a query when searching by id if there's a cache