optimized sparsity handling in atomic functions