server/peer: Use hash tables to find peer records.