Consider storing boolean masks for healpix maps in a sparse data structure to save memory with maps with small sky coverage (<10%).