Minor optimizations to CPU platform
Merge pull request #235 from peastman/master

Minor optimizations to CPU platform