Added caching to the categories

Signed-off-by: Steven Magelowitz <steven.magelowitz@gmail.com>