Homeostatic Regulation of Memory Systems and Adaptive Decisions