[tor-relays] optimize performance of a relay running on a VM