Optimize read only property detection.