mako: use more optimizations