Optimize note/cc handling.