Set bordered layers as opaque when possible to improve compositing performance.
Updated sublayer layout in CPTPlotArea to remove redundant operations and reduce memory usage.
Fixed incorrect boolean operators in the opacity calculations.