Speedup encodable check
Merge pull request #55 from eac/eac/speedup_encoding_check

Speedup encodable check