Try a more clever scavenging scheme.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>