Only extract frame length once

Fix for retrieving large blobs.