Added an index on the ctx.