PRAS optimizations and ajaxification