Adds cython version of batched_expiration_maintenance