Next 2 lines (L2124, L2125) does District.find_server and if we don't pass cached districts it will query mongo. Instead of making 2 queries to mongo, we are making 1 call to fetch all districts and that info is passed to the subsequent calls.