Improve padding checks.