Handle nil gracefully.
Performance tweaks:

- Lazy load schema.
- Cache limits.