Used memoisation to bring the speed differential of spaces4 much closer to nospaces.