Playing around with optimizations

Signed-off-by: Daniel Shumway <shumway.danny@gmail.com>