trade memory for speed