Optimised toblob shim.