handle large middleware sizes for v0.10