Clean unnecessary MAGIC rules and optimize its search

- Cleanup MAGIC database to avoid false positives,
- Optimize magic search loop 6x faster /m