block/deadline: tweaked for better performance on android - credits Faux123