caching powers of 2