On-Chip Fast Data Sparsification for a Monolithic 4096-Pixel Device