Property value cache and invalid data handling. Fixes #2.