Lang raw performance optimization