caching boolean values, rather than creating a new object for every true and every false