Performance improvement for sandboxData encryption