Switch to pure Groovy implementation as mixed compilation is slow