Optimized getEmcValue and hasEmcValue
Merge pull request #640 from Dynious/calculationOptimizations

Optimized getEmcValue and hasEmcValue