Small optimization for Groovy