Removed unnecessary double-check for cache length value
Merge pull request #542 from tetra5/master

Removed unnecessary double-check for cache length value