practicing a 'caching' technique I learned from ruby.