Update some classes for better memory performance.