Two layers of underlayment for sheet vinyl?
The goal is a smooth, flat surface for the vinyl to lay on.  If you can do that with 1/4, then that is great.  But in your case it sounds like you need to step up to 3/8 or 1/2 depending on the gap.  Once you put that down, then there is no need to add 1/4 plywood.