Minor changes to caching

- Cache constants rather than reflection objects
- Make static cache private