Add overflow detection for static objects