Added parameter validator via middleware.
Added cache middleware.