Add index to expires and use that index rather than full table scan each time