Cache min/max values
Merge pull request #2 from splattael/minmax

Cache min/max values