larva optimizations