A 4096-pixel MAPS device with on-chip data sparsification