Calculate this once?
```
sf.getAttribute(Constants.SF_PROPERTY_START_TIME).asInstanceOf[Date].getTime
```
Maybe the compiler does something smart.