Reduce volatile variable access