Scalable Abstractions for Efficient Security Checks