Inline a few ClassMetadata calls.
Add some basic performance tests.