Small performance enhancements

Get rid of half filled heuristic and use unsafe array indexing because
the indices should always be correct.
Merge pull request #357 from polyphemus/cut-bytes-rewrite

Small performance enhancements for cut: bytes cutting