Trading-off security and performance in barrier slicing for remote software entrusting