Recent activity performance improvement + new api