Hiding Data Helps: On the Benefits of Masking for Sparse Coding