Speed patch and cleanup

- Compile patterns for future use
- Remove unused imports
- Clarify log messages