kldscp: optimizations