an efficient store for functions