Block encode and decode on Layer Zero