Multi-query powers of parametrized matrices and applications