Generalized initialization logic to handle both SL and PolyA sequence queries