optimized LLGC transfer code